Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Detect Magic to have one debuff per caster. #2609

Merged
merged 2 commits into from
May 10, 2024

Conversation

Daribon
Copy link
Contributor

@Daribon Daribon commented May 4, 2024

🍰 Pullrequest

This PR fixes Detect Magic to have one debuff per caster.
Currently only one debuff is applied, no matter how many casters apply Detect Magic. It should be possible to apply multiple Detect Magic on a target. One for every mage.

I used SPELL_CUSTOM_SEPARATE_AURA_PER_CASTER to fix the spell, as there are no alternatives from what I've seen.
Image from vmangos with this PR applied:
Wow_THk8dpsYsI

Proof

https://youtu.be/9IMfIkC0dxg?t=40
Video from vanilla with Shazzrah having 3 Detect Magic debuffs on him

https://youtu.be/xchHtS9AG38?t=3m3s
Video from vanilla with Shazzrah having 2 Detect Magic debuffs on him

https://youtu.be/HWx1o7ECjI8?t=18m38s
Video from vanilla with a Rogue having 2 Detect Magic debuffs on him

Image from classic with two mages applying detect magic on a mob:
WowClassicT_kigMHTqEUw

Issues

How2Test

  • None

Todo / Checklist

  • None

@ratkosrb
Copy link
Contributor

ratkosrb commented May 9, 2024

Apply custom flags in spell_template table. Only mod other values in the spell_mod table. Since this is a custom field, not coming from dbc, we are not losing any original data by modifying customFlags in spell_template

@ratkosrb ratkosrb merged commit 2c84b4d into vmangos:development May 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [Bug] Detect Magic not stacking
2 participants